[2/5] xen/xenbus: Add 'will_handle' callback support in xenbus_watch_path()
authorSeongJae Park <sjpark@amazon.de>
Mon, 14 Dec 2020 09:04:18 +0000 (10:04 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 17 Dec 2020 05:31:52 +0000 (05:31 +0000)
commitfee0f49bcb864b9bcabedfdb92cbbbac50da4ea6
tree980934b2f0002309d991397f28d94af94b898b57
parentdacd40ce5ebae448e664bf1c69e9fe68b12160e9
[2/5] xen/xenbus: Add 'will_handle' callback support in xenbus_watch_path()

Origin: https://git.kernel.org/linus/2e85d32b1c865bec703ce0c962221a5e955c52c2
Bug: https://xenbits.xen.org/xsa/advisory-349.html
Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2020-29568

Some code does not directly make 'xenbus_watch' object and call
'register_xenbus_watch()' but use 'xenbus_watch_path()' instead.  This
commit adds support of 'will_handle' callback in the
'xenbus_watch_path()' and it's wrapper, 'xenbus_watch_pathfmt()'.

This is part of XSA-349

Cc: stable@vger.kernel.org
Signed-off-by: SeongJae Park <sjpark@amazon.de>
Reported-by: Michael Kurth <mku@amazon.de>
Reported-by: Pawel Wieczorkiewicz <wipawel@amazon.de>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name xen-xenbus-Add-will_handle-callback-support-in-xenbu.patch
drivers/block/xen-blkback/xenbus.c
drivers/net/xen-netback/xenbus.c
drivers/xen/xen-pciback/xenbus.c
drivers/xen/xenbus/xenbus_client.c
drivers/xen/xenbus/xenbus_probe.c
include/xen/xenbus.h